package ooday05;
/** static final常量的演示  */
public class StaticFinalDemo {
    public static void main(String[] args) {

        System.out.println(Loo.PI);//常常类名打点来访问

        System.out.println(Loo.num);
        System.out.println(Loo.COUNT);
    }
}



class Loo{
    public static final double PI=3.1415926;
    //public static final int num;//常量声明同时必须初始化

    public static int num=5;//静态变量
    public static final int COUNT=5;//常量
}
